#ifndef DEF_SHADER_MANAGER
#define DEF_SHADER_MANAGER


#include "../Shaders/Shader.h"

#include <map>
#include <string>

class ShaderManager
{
public:
	static ShaderManager* Instance()
	{
		if(_instance == 0)
			_instance = new ShaderManager();
		return _instance;
	}

static void DeleteInstance()
{
	delete(_instance);
_instance = NULL;
}

	

	Shader* GetShader(std::string name);


private:
	ShaderManager();
	~ShaderManager();
	static ShaderManager* _instance;

	std::map<std::string, Shader*> _shaders;
};


#endif //DEF_SHADER_MANAGER